libmymath.so:add.o sub.o
	gcc -shared -o $@ $^

%.o:%.c
	gcc -fPIC -c $<

.PHONY:clean
clean:
	rm -rf *.o output libmymath.so 

.PHONY:output
output:
	mkdir output 
	mv *.h libmymath.so output
